<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css"></style>
</head>
<body>
    <h1>form</h1>
    <hr>

    <form action="1.php" name="myform" id="ff">
        username: <input type="text" name="username" value="laowangba">

    <button type="submit">submit</button>
</form>

<hr>
<br>

<!-- HTML5 ! = H5 -->
<button form="ff">HTML5 按钮(外) </button>

<!-- js -->
<button onclick="document.myform.submit()">JS (submit)</button>
<button onclick="document.myform.reset()">JS (reset)</button>

<script>
    





</script>



</body>
</html>



